<include file="public@head" />
</head>

<body>
    <div class="layui-fluid wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">用户操作管理</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li class="layui-this"><a>用户操作管理</a></li>
                                <li><a href="{:url('AdminUserAction/sync')}">同步用户操作</a></li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <form method="post" class="js-ajax-form layui-form">
                                        <php>$cycle_types=['0'=>'不限','1'=>'天','2'=>'小时','3'=>'永久']</php>
                                        <table class="layui-table">
                                            <thead>
                                                <tr>
                                                    <th>操作</th>
                                                    <th>积分更改</th>
                                                    <th>金币更改</th>
                                                    <th>奖励周期</th>
                                                    <th>{:lang('ACTIONS')}</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <foreach name="actions" item="vo">
                                                    <php></php>
                                                    <tr>
                                                        <td>{$vo.name} {$vo.action}</td>
                                                        <td>{$vo.score}</td>
                                                        <td>{$vo.coin}</td>
                                                        <th>
                                                            <eq name="vo.cycle_type" value="0">
                                                                不限
                                                                <else />
                                                                {$vo.reward_number}次/{$vo.cycle_time}{$cycle_types[$vo['cycle_type']]}
                                                            </eq>
                                                        </th>
                                                        <td>
                                                            <a class="layui-btn layui-btn-xs layui-btn-normal" href="{:url('AdminUserAction/edit')}?id={$vo.id}">编辑</a>
                                                        </td>
                                                    </tr>
                                                </foreach>
                                            </tbody>
                                        </table>
                                        <div class="layui-laypage">{$page}</div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
</body>

</html>